package com.gwtgeo.ui.client.mvp.adapter;

import com.google.gwt.user.client.ui.HasText;
import com.smartgwt.client.widgets.form.fields.FormItem;

public class HasTextFormItemAdapter implements HasText{

	private FormItem item;
	
	public HasTextFormItemAdapter(FormItem item) {
		super();
		this.item = item;
	}

	@Override
	public String getText() {
		return item.getDisplayValue();
	}

	@Override
	public void setText(String text) {
		this.item.setValue(text);
	}
	
	

	
	
}
